<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{

	protected function _initAutoload()
	{
		$autoloaderResource = new Zend_Loader_Autoloader_Resource(array(
                         'basePath'  => APPLICATION_PATH . '',
                         'namespace' => '')
      	);

		$autoloaderResource->addResourceType('model', 'models/', 'Model');
		$autoloaderResource->addResourceType('form', 'forms/', 'Form');
		$autoloaderResource->addResourceType('helper', 'views/helpers/', 'View_Helper');
		Model_Role::setRoles();
	}
	
protected function _initView()
    {
           $view = new Zend_View($this->getOptions());
           $view->addHelperPath(APPLICATION_PATH . "/View/Helper", "View_Helper");

    }
	
}

